﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PersonalRegister.aspx.cs"
    Inherits="BOH.ControlPanel.PersonalRegister" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../style/css.css" type="text/css" rel="Stylesheet" />
    <script src="../js/jquery-1.3.2.js" type="text/javascript"></script>
    <script src="../js/common.js" type="text/javascript"></script>
    <link href="../style/jquery.msgbox.css" type="text/css" rel="Stylesheet" />
    <script src="../js/jquery.msgbox.min.js"type="text/javascript"></script>
    <script src="../js/jquery.dragndrop.min.js"type="text/javascript"></script>


</head>
<body>
    <script>
        function confirmInfo(paras) {
            var msg = "<font style='color:#000000'>您的登录密码是:<br><b><font style='color:red'>" + paras+"</font></b><br>请妥善保管! </font>";
            $.msgbox({
                closeIcon: 'Close',
                height: 100,
                width: 300,
                content: msg,
                onClose: function(v) { window.parent.location.href = 'controlPanel.aspx'; }
            });
        }
        function validata() {
            $("#divMsg").html("");
            if ($("#drpG").val().length == 0) {
                $("#divMsg").html("请选择所属主管局!");
                return false;
            }
            if ($("#drpU > option").length > 1) {
                if ($("#drpU").val().length == 0) {
                    $("#divMsg").html("请选择所属单位!");
                    return false;
                }
            }
            if ($("#txtUserName").val().length == 0) {
                $("#divMsg").html("请填写用户名称!");
                return false;
            }
            if ($("#txtPhone").val().length == 0) {
                $("#divMsg").html("请填写联系电话!");
                return false;
            }

            return true;
        }
    </script>
    <form id="form1" runat="server">
    <div id="divNavigation">
        当前位置:<a href="OverView.aspx" target="frameControl">控制面板</a> >> 注册个人信息
    </div>
    <div id="bodyDiv">
        <center>
            <div id="divMsg" style="width:90%;color:Green; font-weight:bold; text-align:left;margin-left:15px;padding-top:5px;"></div>
            <table width="90%" style="margin-top: 15px" class="Grid">
                <tr>
                    <td align="right" width="15%">用户ID&nbsp;</td>
                    <td colspan="3" align="left">&nbsp;<asp:TextBox ID="txtUserCode" runat="server" Width="150px" Enabled=false ReadOnly="true"></asp:TextBox></td>
                </tr>
                <tr class="ARow">
                    <td align="right" width="15%"><font style="color:Red">*</font>
                        所&nbsp;属&nbsp;局&nbsp;
                    </td>
                    <td align="left">
                        &nbsp;<asp:DropDownList ID="drpG" runat="server" Width="180px" AutoPostBack="True"
                            OnSelectedIndexChanged="drpG_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                    <td align="right" width="15%"><font style="color:Red">*</font>
                        所属单位&nbsp;
                    </td>
                    <td align="left">
                        &nbsp;<asp:DropDownList ID="drpU" runat="server" Width="180px">
                        </asp:DropDownList>
                    </td>                    
                </tr>
                <tr >
                    <td align="right" width="15%"><font style="color:Red">*</font>
                        用&nbsp;户&nbsp;名&nbsp;
                    </td>
                    <td align="left">
                        &nbsp;<asp:TextBox ID="txtUserName" runat="server" Width="150px"></asp:TextBox>
                    </td>
                     <td align="right" width="15%"><font style="color:Red">*</font>
                        用户电话&nbsp;
                    </td>
                    <td align="left">
                        &nbsp;<asp:TextBox ID="txtPhone" runat="server" Width="150px"></asp:TextBox>
                    </td>
                    <%--<td align="right" width="15%">
                        用户密码&nbsp;
                    </td>
                    <td align="left">
                        &nbsp;<asp:TextBox ID="txtPassword" runat="server" Width="150px" TextMode="Password"></asp:TextBox>
                    </td>--%>
                </tr>
                <tr class="ARow">
                    <%--<td align="right" width="15%">
                        用户电话&nbsp;
                    </td>
                    <td align="left">
                        &nbsp;<asp:TextBox ID="txtPhone" runat="server" Width="150px"></asp:TextBox>
                    </td>--%>
                    <td align="right" width="15%">
                        用户邮箱&nbsp;
                    </td>
                    <td align="left" colspan="3">
                        &nbsp;<asp:TextBox ID="txtMail" runat="server" Width="150px"></asp:TextBox>
                    </td>
                </tr>
            </table>
            <div style="text-align: center; margin-top: 10px;">
                <asp:Button ID="butSave" Text="保存" Width="150px" runat="server" OnClick="butSave_Click"  OnClientClick="return validata()" />&nbsp;&nbsp;
                <asp:Button ID="butClear" Text="重置" Width="150px" runat="server" />
            </div>
        </center>
    </div>
    </form>
</body>
</html>
